package com.wzy.oa_sys.service.notice;

import com.wzy.oa_sys.model.request.notice.NoticeReq;
import com.wzy.oa_sys.model.response.notice.NoticeResp;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface NoticeService {
    List<NoticeResp> getNoticeList(Long userId);

    void addNotice(NoticeReq noticeReq,Long userId);

    int deleteNoticeById(Integer id);

    NoticeResp getNoticeDetailById(Integer id);

    List<NoticeResp> getMyNoticeList(Long userId,String s);

    List<NoticeResp> getSomeNotices(Long userId, String s);

    List<NoticeResp> getICanApprovedNotices(Long userId);

    void updateTheNotice(NoticeReq noticeReq,HttpServletRequest request);

    void readNotice(long id, HttpServletRequest request);

    void updateNotice(NoticeReq noticeReq,HttpServletRequest request);
}
